import React from 'react'
import  {Link} from 'react-router-dom'
export default class Home extends React.Component{

    render(){
        return (
            <div>
                <ul>
                    <li>
                        <Link to='/main'>Home</Link>
                    </li>
                    <li>
                        <Link to='/about'>about</Link>
                    </li>
                    <li>
                        <Link to='/topic'>topic</Link>
                    </li>
                    <li>
                        <Link to='/imooc'>imooc</Link>
                    </li>
                    <li>
                        <Link to='/imooc1'>imooc1</Link>
                    </li>
                    <li>
                        <Link to='/imooc2'>imooc2</Link>
                    </li>
                </ul>
                <hr/>
                {this.props.children}
            </div>
        );
    }
}
